<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
{% block title %}
    <title>Piggy</title>
{% endblock %}
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    <!-- Add additional CSS in static file -->
{% load static %}
    <link rel="stylesheet" href="{% static 'piggy/css/style.css' %}">
    <link rel="icon" href="{% static 'piggy/favicon.svg' %}">
    <link rel="shortcut icon" href="{% static 'piggy/favicon.png' %}">
</head>

<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3">
            {% block sidebar %}
                <ul class="sidebar-nav">
                    {% if uu %}
                    <li>Welcome,<br/><a href="{% url 'piggy:dashboard' %}">{{uu.name}}</a> ({{role}})</li>
                    <li><a href="{% url 'piggy:logout' %}">Logout</a></li>
                    {% else %}
                    <li>
                        <a href="{% url 'piggy:login' %}">Login</a>/
                        <a href=" {% url 'piggy:register' %}">Register</a>
                    </li>
                    {% endif %}
                    <hr/>
                    <li><a href="{% url 'piggy:index' %}">Home</a></li>
                    <li><a href="{% url 'piggy:plans' %}">All Plans</a></li>
                    <li><a href="{% url 'piggy:projects' %}">All Projects</a></li>
                    <li><a href="{% url 'piggy:teachers' %}">All Teachers</a></li>
                    <hr/>
                    <li><a href="{% url 'piggy:search_projects' %}">Search Project</a></li>
                </ul>
            {% endblock %}
        </div>
        <div class="col-sm-9">
            {% block content %}
                <!-- default content text (typically empty) -->
            {% endblock %}
        </div>
    </div>
</div>
</body>

</html>
